package org.rsbot.script.provider.util;

import org.rsbot.loader.asm.commons.SimpleRemapper;

import java.util.HashMap;
import java.util.Map;

public class ScriptMapper {
	private static Map<String, String> mapping = new HashMap<String, String>();

	public static SimpleRemapper getInstance() {
		return new SimpleRemapper(mapping);
	}

	public static void addMapping(final Map<String, String> map) {
		ScriptMapper.mapping.putAll(map);
	}

	public static void removeMapping(final String... keys) {
		for (final String map : keys) {
			ScriptMapper.mapping.remove(map);
		}
	}

	public static void clearMapping() {
		mapping.clear();
	}
}
